So far in the tutorial each statement got executed one after the other. There are cases when we want to execute certain statements only if some condition is met: i.e. if the condition evaluates to "true". The if statement is used for this task.